package com.hsgene.consumables.dto.v1.operation;

import com.hsgene.common.util.validation.FieldChecker;

import java.io.Serializable;
import java.util.List;

/**
 * 耗材申请新增DTO
 *
 * @author wangbing
 * @version 1.0, 2018/9/17
 */
public class GoodsApplyAddDto implements Serializable {

    private static final long serialVersionUID = 8893526413770448413L;
    /**
     * 耗材申请列表项
     */
    private List<GoodsApplyOperationItemDetailDto> goodsApplyDetails;

    public void check() {
        FieldChecker.checkEmpty(goodsApplyDetails, "耗材信息");
        for (GoodsApplyOperationItemDetailDto detail : goodsApplyDetails) {
            detail.check();
        }
    }

    public List<GoodsApplyOperationItemDetailDto> getGoodsApplyDetails() {
        return goodsApplyDetails;
    }

    public void setGoodsApplyDetails(List<GoodsApplyOperationItemDetailDto> goodsApplyDetails) {
        this.goodsApplyDetails = goodsApplyDetails;
    }
}
